<html>
<head><meta charset="utf-8"><title>Running tests in vim · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html">Running tests in vim</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="187195053"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/187195053" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#187195053">(Feb 02 2020 at 07:43)</a>:</h4>
<p>Do we support running tests from vim? Because I just ran into this:</p>



<a name="187195054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/187195054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#187195054">(Feb 02 2020 at 07:43)</a>:</h4>
<p><a href="/user_uploads/4715/4zTfyYl851hbmh67woVQcd3g/pasted_image.png" target="_blank" title="pasted_image.png">pasted image</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/4zTfyYl851hbmh67woVQcd3g/pasted_image.png" target="_blank" title="pasted image"><img src="/user_uploads/4715/4zTfyYl851hbmh67woVQcd3g/pasted_image.png"></a></div>



<a name="187196424"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/187196424" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#187196424">(Feb 02 2020 at 08:28)</a>:</h4>
<p>I'd remove that play button at all, imao</p>



<a name="187196485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/187196485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#187196485">(Feb 02 2020 at 08:31)</a>:</h4>
<p>I'm not even using <code>coc.nvim</code> (which works with a derivative of the Code extension)</p>



<a name="187198507"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/187198507" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#187198507">(Feb 02 2020 at 09:43)</a>:</h4>
<p>Running requires custom client subcommand, so we probably don't</p>



<a name="188032316"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Running%20tests%20in%20vim/near/188032316" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Martin Asquino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Running.20tests.20in.20vim.html#188032316">(Feb 12 2020 at 17:24)</a>:</h4>
<p>I'm not sure if I understood the question, but I'm able to run tests from vim via CodeLens actions. I'm using <code>LanguageClient-neovim</code> which gets the <code>rust-analyzer.runSingle</code> command and runs the test in a terminal. Same goes for running the binary itself.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>